const readline = require('readline')
const rl = readline.createInterface({ 
  input: process.stdin, 
  output: process.stdout 
});

const userInfo = ['name', 'email', 'QQ', 'mobile']
const me = {}

function question(pro) {  
  return new Promise((resolve) => {  
    rl.question(pro, (answer) => {  
      resolve(answer);  
    });  
  });  
}  

async function main() {
  for (let num = 0; num < userInfo.length; num++) {
    const answer = await question(userInfo[num] + ': ')
    me[userInfo[num]] = answer
  }
  rl.close()
  console.log(me);
}
main()